package com.zh.springcloud.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Description:
 * @ClassName OrderFeign
 * @date: 2021.07.07 11:53
 * @Author: zhanghang
 */
@Component
// 想要调用提供方的接口，必须加@FeignClient注解，value的值就是提供方服务的服务名称
@FeignClient(value = "cloud-order-service")
public interface OrderFeign {

	@GetMapping("/test")
	String test();
}
